package com.jianganming.template;

//实现抽象的模版方法
public class DayOffProcessImpl extends DayOffProcess {
    private User user;
    private Dept dept;

    public DayOffProcessImpl(User user, Dept dept) {
        this.user = user;
        this.dept = dept;
    }

    @Override
    protected void summit() {
        System.out.println(user.getName()+"签名");
    }

    @Override
    protected void signUp() {
        System.out.println("提交到"+dept.getName()+"审批");
    }
}
